
REM for /f %%x in ('guid') do set datafile=%%x.txt
for /f %%x in ('guid') do set writekeys=writekeys_%%x.txt
REM for /f %%x in ('guid') do set tempkey=tempkey_%%x.txt
if "%1"=="" ( set /a round=10000 ) else ( set /a round=%1 )
if "%2"=="" ( set serveraddress=hzj-jie-x31 ) else ( set serveraddress=%2 )
if "%3"=="" ( set serverport=42331 ) else ( set serverport=%3 )
for /l %%x in (0,1,%round%) do call :write
exit

:write
for /f %%x in ('guid') do set key=%%x
REM set key > %datafile%
REM for /f %%x in ('rnd -min 1 -max 1001 -int') do guid %%x >> %datafile%
REM echo %key% > %tempkey%
REM for /f %%x in ('rnd -min 1 -max 1001 -int') do guid %%x | storClient -write -key %key% | more | combinew %tempkey% * /- * /- >> %writekeys%
echo %key% >> %writekeys%
for /f %%x in ('rnd -min 1 -max 1001 -int') do guid %%x | storClient -write -host %serveraddress% -port %serverport% -key %key% >> %writekeys%
